{! extends name="back/base" !}


{! block name="content" !}

<div class="header">
    <a href="/guest_e/-1">
    <!-- <button class="button-success pure-button">&nbsp;新增&nbsp;</button></a> -->
    <!-- 
    <button class="button-error pure-button">&nbsp;失败&nbsp;</button>
    <button class="button-warning pure-button">&nbsp;警告&nbsp;</button>
    <button class="button-secondary pure-button">&nbsp;二级按钮&nbsp;</button> -->
</div>

<div class="content">
    <table class="pure-table table">
        <thead>
            <tr>
                <th style="width: 20px;">#</th>
                <th style="width: 100px;">ipv4</th>
                <th>referer</th>
                <th>user_agent</th>
                <th>request_url</th>
                <th style="width: 100px;">访问时间</th>
                <!-- <th style="width: 215px;">操作</th> -->
            </tr>
        </thead>

        <tbody>
{! for $list as $key => $val !}
<tr class="pure-table-odd">
    <td>{=$val['id']}</td>
    <td>{=$val['ipv4']}</td>
    <td>{=$val['referer']}</td>
    <td>{=$val['user_agent']}</td>
    <td>{=$val['request_url']}</td>
    <td>{=$val['create_at']}</td><!-- 
    <td>
        <a href="/guest_e/{=$val['id']}">
        <button class="pure-button button-small button-secondary">修改</button></a>
        <a href="/guest_d/{=$val['id']}">
            <button class="pure-button button-small button-error">删除</button>
        </a>
    </td> -->
</tr>
{! endfor !}
        </tbody>
    </table>
</div>


<div class="footer">
{=$pagination}
</div>

{! endblock !}